Skip to content

[PWGJE] Add new subgenerator ID - #18795

Draft
mhwang285 wants to merge 1 commit into
AliceO2Group:masterfrom
mhwang285:jj-subgen-id
Draft

mhwang285 wants to merge 1 commit into
AliceO2Group:masterfrom
mhwang285:jj-subgen-id

Conversation

@mhwang285

Copy link
Copy Markdown
Contributor

Add a new subgenerator ID specifically for hard process/signal events in JJ and GJ MCs, so that JJ/GJ events can be unambiguously identified relative to MB events.

From this definition of MCGenIdEncoding, the last 5 LSBs of the encoding are the subgenerator ID, and requesting it with .getSubGeneratorId() returns 1 minus this value. So:

True MB events from MB MC: encoding = 127 = 00000 0000 1111111
subGeneratorId = 0, so .getSubGeneratorId returns -1
MB gap events in JJ and GJ MC: encoding = 2175 = 00001 0000 1111111
subGeneratorId = 1, so .getSubGeneratorId returns 0
GJ and JJ sig events in JJ MC: encoding = 4223 = 00010 0000 1111111
subGeneratorId = 2, so .getSubGeneratorId returns 1

@github-actions github-actions Bot added the pwgje label Nov 17, 2026
@github-actions github-actions Bot changed the title Add new subgenerator ID [PWGJE] Add new subgenerator ID Nov 17, 2026
@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 6 warnings, 🔕 0 disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant